package com.jxm.thread.demo1;

import com.jxm.thread.demo1.MyThread;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2024-1-3 15:11
 * @Version: 1.0
 */
public class Test {

    public static void main(String[] args) {
//        ThreadTest threadTest = new ThreadTest();
        MyThread myThread = new MyThread();
//        Thread t1 = new Thread(myThread);
//        Thread t2 = new Thread(myThread);
//        threadTest.start();
//        t1.start();
        myThread.run();
//        t2.start();

        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("------------"+Thread.currentThread().getName());
    }
}
